package com.jkl.dao.button;

import com.jkl.entity.button.BsRoleButton;
import com.jkl.entity.button.Button;
import com.jkl.entity.button.ButtonPo;
import com.jkl.entity.button.ButtonVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liuzhennan
 * @create 2021-03-22 16:36
 */
public interface ButtonMapper {

    int addButton(Button button);

    Button selectButtonByMenuIdAndButtonCode(Button button);

    List<Button> selectButtonListByMenuId(@Param("menuId") Integer menuId);

    BsRoleButton selectButtonAndRole(ButtonVo buttonVo);

    void addButtonAndRole(ButtonPo buttonPo);

    void deleteButtonAndRole(ButtonVo buttonVo);

    List<Button> selectAllButton();

    List<Integer> selectDifferentMenuId();


    List<ButtonVo> selectAllButtonVo();

    ButtonVo selectAllButtonVo1(Integer integer);

    void deleteAllButtonByRole(Integer roleId);

    List<Integer> selectButtonIdByRoleID(Integer rowId);

    Integer selectMenuIdByRowId(Integer integer);
}
